<template>
    <Container class="no-find">
        <div class="full bg-white">
            <div style="width:1200px;margin: 20px auto;padding-left:40px;">
                <p>接口测试</p>
                <div class="mb">
                    <p>补发匹配的入库单的优惠券激活消息 /backend/sendStockInActiveCoupon  stockInIds </p>
                    <Input style="width: 400px" search enter-button placeholder="输入参数" @on-search="getData1" />
                </div>
                <div class="mb">
                    <p>关闭收款单的检查并退款 /backend/paymentCancelReCheck orderSn </p>
                    <Input style="width: 400px" search enter-button placeholder="输入参数" @on-search="getData2" />
                </div>
                <div class="mb">
                    <p>扫码入库订单匹配消息重新发送 /backend/resendOrderStockInScan stockInSns </p>
                    <Input style="width: 400px" search enter-button placeholder="输入参数" @on-search="getData3" />
                </div>
                <div class="mb">
                    <p>查看条码入库激活优惠券情况 /backend/checkBarcodeStockInScan barcode orderSn 两个参数 </p>
                    <Input style="width: 400px" search enter-button placeholder="输入参数" @on-search="getData4" />
                </div>
                <p>返回参数</p>
                <div style="color:red">
                    {{resData}}
                </div>
            </div>
        </div>
    </Container>
</template>
<script>
    export default {
        data() {
            return {
                resData: ''
            }
        },
        methods: {
            getData1(v) {
                this.$Message.info('请求中')
                this.$ajaxGet(`/backend/sendStockInActiveCoupon?${v}`).then(res => {
                    this.resData = res
                })
            },
            getData2(v) {
                this.$Message.info('请求中')
                this.$ajaxGet(`/backend/paymentCancelReCheck?${v}`).then(res => {
                    this.resData = res
                })
            },
            getData3(v) {
                this.$Message.info('请求中')
                this.$ajaxGet(`/backend/resendOrderStockInScan?${v}`).then(res => {
                    this.resData = res
                })
            },
            getData4(v) {
                this.$Message.info('请求中')
                this.$ajaxGet(`/backend/checkBarcodeStockInScan?${v}`).then(res => {
                    this.resData = res
                })
            },
            jumpPrevPage() {
                this.$router.back();
            },
            jumpHomePage() {
                this.$router.push({
                    name: "home"
                })
            }
        }
    }
</script>

